<?php
/**
 * Created by JetBrains PhpStorm.
 * User: HoangAlex
 * Date: 6/29/12
 * Time: 10:06 PM
 * To change this template use File | Settings | File Templates.
 */
?>
<div class="head_title"><h1 align="center">THỐNG KÊ DOANH THU</h1></div>
<?php
echo $this->Form->create('ThongKe', array('action' => 'baocaodoanhthu'));
echo $this->Form->input('id', array('type' => 'hidden'));
echo $this->Form->input('NGAYTK', array('label' => 'Từ ngày'));
echo $this->Form->input('NGAYKT', array('label' => 'Đến ngày'));
echo $this->Form->submit('Chọn');
if ($this->data != null){
    $NGAY = $this->data['ThongKe']['NGAYTK']['year'] . "-" . $this->data['ThongKe']['NGAYTK']['month'] . "-" . $this->data['ThongKe']['NGAYTK']['day'];
	$NGAYKT = $this->data['ThongKe']['NGAYKT']['year'] . "-" . $this->data['ThongKe']['NGAYKT']['month'] . "-" . $this->data['ThongKe']['NGAYKT']['day'];
	echo $this->Html->link('Xem doanh thu', array('action' => 'doanhthu', $NGAY, $NGAYKT), array('class' => 'notice success'));
}
echo $this->Form->end();
?>